package co.th.bjc.md.helper.utils;

public class Common {

	public static boolean chkStringIsNull(String input){
		if (input == null) return true;
		else if (input.equals("")) return true;
		else if (input.equalsIgnoreCase("null")) return true;
		else return false;
	}
	
	public static boolean isNotNull(Object input){
		if (input != null){
			return true;
		}else if (input instanceof String){
			if (!"".equals((String)input)) return true;
			else if (!"null".equalsIgnoreCase((String)input)) return true;
			else return false;
		}else if (input instanceof Long){
			if (0 > (Long)input) return true;
			else return false;
		}else{
			return false;
		}
	}
	
	
}
